<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<title><?php echo L('frontend_home_test');?></title>
<link rel="stylesheet" href="<?php echo WP . 'media/css/bootstraped.min.css'; ?>" />
<link rel="stylesheet" href="<?php echo WP . 'media/css/bootstraped-responsive.min.css'; ?>" />
<link rel="stylesheet" href="<?php echo WP . 'media/css/docs.css'; ?>" />
<script type="text/javascript" src="<?php echo WP . 'media/js/jquery.js'; ?>"></script>
<script type="text/javascript" src="<?php echo WP . 'media/js/bootstraped.min.js'; ?>"></script>  

<!--[if IE 7]>
    <link rel="stylesheet" href="<?php echo WP . 'media/css/font-awesome-ie7.min.css'; ?>" />
<![endif]-->

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
    <script type="text/javascript" src="<?php echo WP . 'media/js/html5shiv.js'; ?>"></script>
  <script src="assets/js/html5shiv.js"></script>
<![endif]-->
</head>
<body style="padding-bottom:300px;">
<div class="alert"><a href="<?php echo U('index');?>">返回管理首页</a> - 切换语言：<a href="?l=zh-cn">简体中文</a> | <a href="?l=zh-tw">繁体中文</a> | <a href="?l=en-us">英文</a> | 测试语言切换(效果请查看此页面title)</div> 
<div class="container">
    <h2>管理分组</h2>
    <p><a href="<?php echo U('addgroup');?>">添加分组</a></p>
    <div class="span9">
        <p>分组列表</p>
        <table class="table table-striped table-bordered">
            <thead>
            <tr><th>名称</th><th>Key</th><th>操作</th></tr>
            </thead>
            <tbody>
                <?php  foreach($groups as $group): ?>
                <tr>
                    <td><?php echo $group['title'];?></td>
                    <td><?php echo $group['key'];?></td>
                    <td>
                        <a href="<?php echo U('updategroup',array('id'=>$group['id']));?>">更新</a>
                        <a href="<?php echo U('deletegroup',array('id'=>$group['id']));?>">删除</a>
                    </td>
                </tr>   
                <?php endforeach;?>
            </tbody>
        </table>
        <p><?php echo $pager;?></p>
    </div>
</div> 
<div style="position:fixed;bottom:0;left:0;padding:20px;background:#eee;border-top:1px solid #555;width:100%;"> 
<p style="text-align:center;">&copy;2013 PHP @ jlzx . All Rights Reserved.</p>
</div>
<script type='text/javascript' language='javascript'>
    $(function(){
        $('#renewlocale').click(function(){
            $('#actionbtns').html('<div class="alert alert-success">正在更新，请稍候...</div>');
            return true;
        });
    });
</script>
</body>
</html>